package com.xxl.job.admin.dao;

import com.xxl.job.admin.core.model.JobTimingStrategy;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * @author songsong
 * @version 1.0
 * @date 2022/11/28 10:28
 **/
@Mapper
public interface JobTimingStrategyDao{
    public List<JobTimingStrategy> pageList(@Param("offset") int offset,
                                            @Param("pagesize") int pagesize);

    int pageListCount();

    int save(JobTimingStrategy jobTimingStrategy);

    JobTimingStrategy loadById(@Param("id") int id);

//    void update(@Param("description") String description, @Param("cron") String cron, @Param("editTime") Date editTime, @Param("editUser") String editUser, @Param("id") int id);

    int update(JobTimingStrategy jobTimingStrategy);
    public int delete(@Param("id") int id);

    List<JobTimingStrategy> list();
}
